﻿@model ZhuanShen.Models.LogOnModel

<h2>登录</h2>
<p>
    请输入用户名和密码. @Html.ActionLink("注册", "Register").
</p>


@Html.ValidationSummary(true, "登录失败. 请输入正确的用户名和密码.")

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>用户信息</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="登录" />
            </p>
        </fieldset>
    </div>
}
